<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@include file="head.jsp"%>
<head>
<link type="text/css"
	href="${pageContext.request.contextPath}/css/main.css" rel="stylesheet"
	charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	
</script>
</head>

<body class="main">
<div class="dddiv" style="background-color: #F2F2F2;width:-webkit-fill-available;height:1300px;margin-left:auto;margin-right: auto">
<div class="dadiv" style="top: 20px;">
<div id="text_t">
    <p style="background-color: #23262E;line-height: 40px;color: #F2F2F2;;" >酒店预定</p></div>
    <div class="divbody" style="width: 657px">
            <ul class="hotellist" style="width: 564px">
				   <c:forEach items="${products}" var="p" varStatus="vs">
				   <c:if test="${p.state==0}">
					 <li class="hotel">
						<div class="divhotelimg"> 
						<img src="${pageContext.request.contextPath}${p.imgurl}" width="179px" height="179px"/> 
						</div>
						<div class="divlisttitle">
							    ${p.roomnumber}${p.type}<br />售价：￥${p.price} <br><a href="${pageContext.request.contextPath}/findProductById?prid=${p.prid}" style="margin-top: 20px;
    margin-left: 120px" onclick="javascript:return confirm_logout()" class="button_view">预订</a>
						</div>
					</li>
				 </c:if>
				 </c:forEach>
			</ul>
	 </div>
	 </div>
	 </div>
</body>	
</html>